import { request } from "./http";

// 登录
export const userLogin = (params: any) => {
  return request({
    method: "POST",
    url: `admin/user/login`,
    data: params
  });
};

// 获取用户信息
export const getUserInfo = () => {
  return request({
    method: "GET",
    url: `admin/user/info`
  });
};

// 退出登录
export const loginOut = () => {
  return request({
    method: "POST",
    url: `admin/user/logout`
  });
};

export const getConfig = () => {
  return request({
    method: "GET",
    url: `system-config`
  });
};
